<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

// Route::get('think', function () {
//     return 'hello,ThinkPHP8!';
// });

// Route::get('hello/:name', 'index/hello');

// Route::get('hello', 'index/hello');

// // 设置访问路径为 user/login，映射到 UserController 的 login 方法
// Route::get('user/login', 'User/login');

// // 设置访问路径为 user/register，映射到 UserController 的 register 方法
// Route::get('user/register', 'user/register');

// // 如果你有其他方法，继续添加类似的路由规则
// // 例如 user/profile 映射到 UserController 的 profile 方法
// Route::get('user/profile', 'user/profile');

// Route::get('user/getUser', 'user/get_user');

// Route::put('user','user/update_user');

// Route::delete('user','user/delete_user');


// Route::resource('student','Student')->vars(["student" => "student_id"]);

// Route::rest("create",["Get","/add","add"]);
// Route::resource('student','Student');


// Route::get('/', 'index/index');

// --- 公开访问的路由 (不需要中间件) ---
Route::post('user/login', 'user/login');
Route::post('user/register', 'user/register');
